package com.itcam.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itcam.model.common.dtos.ResponseResult;
import com.itcam.model.wemedia.dtos.ChannelDto;
import com.itcam.model.wemedia.pojos.WmChannel;

/**
 * @author : Cammy.Wu
 */

public interface WmChannelService extends IService<WmChannel> {


    /**
     * 查询所有频道
     * @return
     */
    ResponseResult findAll();

    /**
     * 删除频道
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);

    /**
     * 频道名称模糊分页查询
     * @param channelDto
     * @return
     */
    ResponseResult findByNameAndPage(ChannelDto channelDto);

    /**
     * 保存频道
     * @param adChannel
     * @return
     */
    ResponseResult insert(WmChannel adChannel);

    /**
     * 修改频道
     * @param adChannel
     * @return
     */
    ResponseResult update(WmChannel adChannel);
}
